<%@page language="java"%>
<%@page contentType="text/html"%>
<%@page import="java.util.*, descriptor.*"%>

<jsp:include page="compsup_generic_pre.jsp" >
	<jsp:param name="pagesubtitle" value="Degrees list" />
</jsp:include>

	<p>
		<jsp:useBean id="degrees" class="descriptor.DegreeListDescriptor" scope="request" />
		<% if (degrees.getDegreeList().size() == 0){%>
		You are not currently linked to any degree...
		<%}else{%>
		<table>
			<tr><th>Name</th><th>Infos</th><th>Feedback</th></tr>
			<% for (DegreeDescriptor dd: degrees.getDegreeList() ){%>
			<tr>
				<td><%= dd.getName() %></td>
				<td><%= dd.getInfos()%></td>
				<td><a href="companySup?action=degrees_more&degreeId=<%= dd.getId() %>">edit</a></td>
	
			</tr>
			<%}%>
		</table>
		<%}%>
	</p>
	
<jsp:include page="compsup_generic_post.jsp" ></jsp:include>		